@import "./modules/reset";
@import "./modules/var";
@import "./modules/mixin";
@import "./modules/toast";
@import "./modules/footer";

header {
  height: 100px;
  background-color: #fff;
  .login {
    h1 a {
      display: block;
      text-indent: -9999px;
      overflow: hidden;
      @include setbgimg(130px, 100px, '../../static/images/base/logo.png');
    }
  }
  .tip {
    height: 30px;
    line-height: 30px;
    padding: 0 20px;
    background-color: #FFEFEF;
    border: 1px solid $color;
    margin-top: 35px;
    margin-left: 50px;
    color: #666;
  }
}
section {
  height: 600px;
  background: url('../../static/images/login/loginbg.png') no-repeat center;
  background-size: cover;
  .login-form {
    float: right;
    margin-top: 40px;
    margin-right: 60px;
    padding: 20px 40px;
    background-color: rgba(255,255,255,.9);
    border-radius: 8px;
    .title {
      width: 310px;
      line-height: 30px;
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 30px;
      text-align: center;
      span {
        display: inline-block;
        position: relative;
        cursor: pointer;
      }
      i.line {
        font-style: normal;
        margin: 0 15px;
      }
      span.active {
        &::before {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 2px;
          background-color: $color;
        }
      }
    }
    form.up-form {
      margin-top: 15px;
      .form-item {
        input {
          width: 310px;
          height: 44px;
          border-radius: 22px;
          border: 1px solid #D6C5C3;
          padding-left: 20px;
          font-size: 12px;
        }
        .tip {
          height: 30px;
          line-height: 30px;
          padding-left: 20px;
        }
      }
      .btn {
        text-align: center;
        button {
          width: 310px;
          height: 44px;
          line-height: 44px;
          border-radius: 22px;
          background-color: $color;
          color: #fff;
          font-size: 14px;
          cursor: pointer;
          &:hover {
            background-color: #FE4361;
          }
        }
      }
    }
    .register {
      text-align: right;
      margin-right: 10px;
      line-height: 20px;
      margin-top: 20px;
      a {
        text-decoration: underline;
        &:hover {
          color: $color;
        }
      }
    }
    .other-way {
      line-height: 22px;
      height: 22px;
      margin-top: 20px;
      .other-login {
        cursor: pointer;
        i.wechat {
          display: inline-block;
          vertical-align: top;
          margin-left: 20px;
          @include setbgimg(22px, 22px, '../../static/images/login/wechat.png');
        }
        i.qq {
          @extend .wechat;
          @include setbgimg(22px, 22px, '../../static/images/login/QQ.png')
        }
      }
    }
  }
}
footer {
  margin-top: 5px;
}